package com.industry.customer.dal.dataobject;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.industry.framework.core.annountions.record.IdooRecordBizType;
import com.industry.framework.core.annountions.record.IdooRecordProperty;
import com.industry.system.dal.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客户信息
 * </p>
 *
 * @author zhuozh
 * @since 2025-03-22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("crm_customer")
@IdooRecordBizType
public class CrmCustomer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 部门ID；空则为公共客户数据
     */
    private String deptId;

    /**
     * 客户名称
     */
    @IdooRecordProperty("客户名称")
    private String cusName;

    /**
     * 客户类型 0企业客户 1个人客户 2VIP客户
     */
    @IdooRecordProperty(value = "客户类型" , codeKey = "CRM_CUS_TYPE")
    private String cusType;

    /**
     * 客户行业
     */
    private String cusIndustry;

    /**
     * 客户职位
     */
    private String cusPosition;

    /**
     * 客户等级 1，2，3
     */
    @IdooRecordProperty(value = "客户等级")
    private String cusLevel;

    /**
     * 客户电话
     */
    @IdooRecordProperty(value = "电话")
    private String cusPhone;

    /**
     * 客户邮箱
     */
    @IdooRecordProperty(value = "邮箱")
    private String cusEmail;

    /**
     * 客户地址
     */
    private String cusAddress;

    /**
     * 企业规模0 0~20 1 20~100 2 10~500 3 500~1000 4 1000+
     */
    private String cusScale;

    /**
     * 客户网址
     */
    private String cusWeburl;

    /**
     * 客户来源
     */
    private String cusSource;

    /**
     * 删除标记
     */
    @TableLogic
    private String delFlag;

    /**
     * 创建部门
     */
    private String createDept;
}
